
GridDlg.controllerName = "/attendance/vacation";
GridDlg.PrimaryKey = "vId";
GridDlg.formId = "vacation"
/**
 * 用户详情对话框（可用于添加和修改对话框）
 */
GridDlg.validateFields =  {
    vYear: {
        validators: {
            notEmpty: {
                message: '年度不能为空'
            }

        }
    },
    vUser: {
        validators: {
            notEmpty: {
                message: '工人不能为空'
            }
        }
    },
    vDayNum: {
        validators: {
            notEmpty: {
                message: '年休假天数不能为空'
            }
        }
    }
};

/**
 * 收集数据
 */
GridDlg.collectData = function () {
    this.set('vId').set('vYear').set('vUser').set('vDayNum');
};

$(function () {
    Common.initValidator(GridDlg.formId, GridDlg.validateFields);
});
